package hzncc.wcs.service.wcs.impl;

import com.diboot.core.vo.JsonResult;
import com.intelligt.modbus.jlibmodbus.master.ModbusMaster;
import hzncc.wcs.config.ModbusConfig;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import com.diboot.core.util.S;
import com.diboot.core.service.impl.BaseServiceImpl;

import hzncc.wcs.entity.wcs.Mission;

import hzncc.wcs.mapper.wcs.MissionMapper;
import hzncc.wcs.service.wcs.MissionService;


/**
* 任务管理 相关Service实现类
* @author MyName
* @version 1.0
* @date 2024-12-20
* Copyright © MyCorp
*/
@Slf4j
@Service
public class MissionServiceImpl extends BaseServiceImpl<MissionMapper, Mission> implements MissionService {
    @Resource
    private ModbusConfig modbusConfig;

    @Override
    public JsonResult putWarehoursin() {
//        try {
//            ModbusMaster modbusMaster = modbusConfig.init();
//            modbusMaster.writeSingleRegister(1, 5,  2);
//        }catch (Exception e) {
//            System.out.println("jlibmodbus运行异常:" + e.getClass().getName() + "-->" + e.getMessage());
//            e.printStackTrace();
//        }

        return null;
    }
}